package com.sky.nacos.service.impl;

import com.sky.nacos.entity.AccDetail;
import com.sky.nacos.mapper.AccDetailMapper;
import com.sky.nacos.service.IAccDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 账户流水明细表(AccDetail)表服务实现类
 *
 * @author makejava
 * @since 2020-04-20 16:34:37
 */
@Service("accDetailService")
public class AccDetailServiceImpl implements IAccDetailService {
    @Resource
    private AccDetailMapper accDetailMapper;

    /**
     * 新增数据
     *
     * @param accDetail 实例对象
     * @return 实例对象
     */
    @Override
    public AccDetail insert(AccDetail accDetail) {
        this.accDetailMapper.insert(accDetail);
        return accDetail;
    }

    @Override
    public AccDetail select(String accSn) {
        return accDetailMapper.select(accSn);
    }
}